import type { PageParam, PageResult } from '@vben/request';

import { requestClient } from '#/api/request';

export namespace BpmCategoryApi {
  /** 流程分类 */
  export interface Category {
    userCount: number;
    loginCount: number;
    demandCount: number;
    produceCount: number;

  }
}


export async function getCard(params: PageParam) {
  return requestClient.get<PageResult<BpmCategoryApi.Category>>(
    '/index/card',
    { params },
  );
}


export async function getHitCount(params: PageParam) {
  return requestClient.get<PageResult<BpmCategoryApi.Category>>(
    '/index/hitCount',
    { params },
  );
}
